import {authRequest} from "@/request";

//  登陆
export const postLogin = (body:any)=>{
    return authRequest.post("/index/login",body);
}

// 退出登陆 /admin/auth/index/logout
export const postLogOut = ()=>{
    return authRequest.post("/index/logout");
}

// 获取账号信息 /admin/auth/index/info
export const getInfo = ()=>{
    return authRequest.get("/index/info");
}
